public class Limousine extends Car {
    public Limousine(){}
    public Limousine(String name, String plate, double money, int day) {
        super(name, plate, money, day);
    }
    public void show(){
        if (getDay()<7){
            setMoney(getMoney()*getDay());
        }
        else if (7<getDay()&&getDay()<30){
            setMoney(getMoney()*getDay()*0.9);
        }
        else if (30<getDay()&&getDay()<150){
            setMoney(getMoney()*getDay()*0.8);
        }
        else if (150<getDay()){
            setMoney(getMoney()*getDay()*0.7);
        }
    }
}
